<div class="wrap-all">
    <span id="${uuid}"></span>

    <h3>模板信息</h3>

    <div>
        <a data-id="showDes" href="javascript:void(0)" iconCls="fa fa-exclamation fa-lg"
           plain="true">${config.title}</a>
        <a data-id="downPre" plain="true" iconCls="fa fa-file-excel-o fa-lg"
           href="${pageContext.request.contextPath}/download${config.filePath}?f=导入模板.${config.fileEndStr}">导入模板下载</a>
        <div data-id="des" class="des-panel" style="display: none">
            <c:forEach items="${config.columns}" var="column">
                <dl>
                    <dt>${column.title}</dt>
                    <dd>${column.description}</dd>
                    <c:if test="${not empty column.warn}">
                        <dd style="color: red">${column.warn}</dd>
                    </c:if>
                </dl>
            </c:forEach>
        </div>
    </div>
    <h3>数据导入操作</h3>
    <div data-id="workJob">
        <input type="text" data-id="fileSelect"/>
        <div data-id="action" class="import-action" style="display: none">
            <span data-id="filePath"></span>
            <a data-id="doUpload" href="javascript:void(0)" plain="true">开始执行文件导入</a>
        </div>
    </div>
    <div data-id="progress"></div>
    <h3>数据导入报告</h3>
    <div class="grid-wrap">
        <table data-id="grid"></table>
    </div>
    <div data-id="user_list_btn">
        <a data-href="${pageContext.request.contextPath}/download{{importReportFile}}?f=导入报告.txt"
           data-target="link" data-id="{{id}}" data-key="download" iconCls="fa fa-download fa-lg" plain="true">报告下载</a>
    </div>
</div>
<script language="javascript">
    seajs.use("apps/dataimport/main", function (page) {
        page.init("${pageContext.request.contextPath}", "${uuid}", {
            keyCode:"${keyCode}"
        });
    })
</script>
